<!-- ChangePasswordDialog.vue -->
<template>
    <el-dialog v-model="isShowSelect" width="60%" :destroy-on-close="true">
        <template #header="{ close, titleClass }">
            <h4 :class="titleClass">您的密码已超过60天未修改，建议修改密码以保证安全</h4>
        </template>
        <resetPwd @hidedialog="closeDialog"/>
        
    </el-dialog>
  </template>
  
  <script setup>
  import resetPwd from "./resetPwd.vue";
  import useUserStore from '@/store/modules/user'
  const userStore = useUserStore()

  const isShowSelect = ref(false)
  
  
  const closeDialog = async () => {
    isShowSelect.value = false
    // 退出登录
    // userStore.logOut().then(() => {
    //         location.href = '/index';
    // })
  }
  const showDialog = async () => {
    isShowSelect.value = true
  }
  defineExpose({showDialog})
  </script>
  
  <style scoped>
  h4{margin: 10px 0;}
  </style>
  